import request from '@/utils/request'

// 批量上架
export function bulk_listings(data) {
  return request({
    url: '/business/automatic_shelves/bulk_listings',
    method: 'POST',
    data
  })
}


export function getProgress(taskId) {
  return request({
    url: `/business/automatic_shelves/progress/${taskId}`,
    method: 'GET'
  })
}

export function find({ids, status}) {
  return request({
    url: `/system/api/magess/${ids}`,
    method: 'GET',
    params: {
      findstatus: status,
    },
  });
}

// 取消监控
export function cancelMonitor(id, status) {
  return request({
    url: `/business/stock/updateismonitor/${id}/${status}`,
    method: 'GET'
  });
}

export function isMlist(data) {
  return request({
    url: `/business/stock/isMlist`,
    method: 'GET',
    params: data
  });
}


// 列表
export function listApi(data) {
  return request({
    url: `/monitor/list`,
    method: 'GET',
    params: data
  });
}


// 更换手机
export function changePhoneApi(data) {
  return request({
    url: `/system/log/add`,
    method: 'POST',
    data
  });
}


// 更换手机历史记录
export function changePhoneHistoryListApi(data) {
  return request({
    url: `/system/log/list`,
    method: 'GET',
    params: data
  });
}


// 下载模板
export function downloadTemplateApi() {
  return request({
    url: `/system/monitoring/write`,
    method: 'GET',
  });
}


// 上传
export function uploadTemplateApi(data) {
  return request({
    url: `/system/monitoring/tAccountMonitog`,
    method: 'POST',
    data
  });
}


